package com.fbee.smartcommunities.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fbee.smartcommunities.entity.Log;
import com.fbee.smartcommunities.entity.Visitor;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.org.apache.xpath.internal.operations.Bool;
import com.sun.xml.internal.fastinfoset.algorithm.BooleanEncodingAlgorithm;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 汪佳泉
 * @since 2024-08-21
 */
public interface VisitorService extends IService<Visitor> {

    Page<Visitor> getPage(Integer pageNo, Integer pageSize , String keyword, Boolean order);

    Boolean changeState(Long id,Boolean state,String key);

    Boolean addVisitor(Long openId, String name, Boolean sex,String phone, String carId, String purpose, Long visitTimeValue);

    List<Visitor> getVisitorsByUid(Long id);
}
